<?php
function smarty_function_yearmonth($params, &$smarty)
{
	$year = $params['year'];
	$month = $params['month'];
	
	if($month && $year)
		return getMonthName($month).' '.$year;
	if ($year)
	 	return $year.' год';
	
	return '';
}
?>
